<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class BrokerGroupUser extends Model
{   
    protected $table = 'broker_group_user';
    //
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'broker_group_id','user_id'
    ];

    public function user()
    {
        return $this->belongsTo('App\User');
    }

    public function group()
    {
        return $this->belongsTo('App\Models\BrokerGroup','broker_group_id');
    }

}
